package com.wkbb.sports.model;

import com.wkbb.common.dto.HkBodyCompositionInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
//基础健康数据
@Data
public class HkHealthInfo implements Serializable {

    @ApiModelProperty(value = "ID")
    private Long id;
    @ApiModelProperty(value = "体测标识")
    private Long measureId;
    @ApiModelProperty(value = "三方唯一标识")
    private String thirdId;
    @ApiModelProperty(value = "血压（高压）")
    private HkBodyCompositionInfo bloodHigh;
    @ApiModelProperty(value = "血压（低压）")
    private HkBodyCompositionInfo bloodLow;
    @ApiModelProperty(value = "血氧饱和度")
    private HkBodyCompositionInfo bloodOxygen;
    @ApiModelProperty(value = "心率")
    private HkBodyCompositionInfo heartRate;
    @ApiModelProperty(value = "色盲")
    private String color;
    @ApiModelProperty(value = "左眼视力")
    private String leftEye;
    @ApiModelProperty(value = "右眼视力")
    private String rightEye;
    @ApiModelProperty(value = "色盲")
    private String temperature;

    public void initData(HkBody data){
        measureId = data.getMeasureId();
        thirdId = data.getThirdId();
    }
}
